<?php

namespace App\Http\Requests\User;


use App\Http\Requests\AbstractBaseRequest;

class EditPayProfileRequest extends AbstractBaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'nickname' => ['sometimes','required', 'string', 'between:2,20'],
            'avatar_url' => ['sometimes', 'required','string'],
            'gender' => ['sometimes', 'required','in:0,1,2'],
            'signature' => ['sometimes', 'required','string','between:1,100'],
        ];
    }

    public function attributes(): array
    {
        return [
            'nickname' => trans('用户昵称'),
            'avatar_url' => trans('头像'),
            'gender' => trans('性别'),
            'signature' => trans('个人签名'),
        ];
    }

}
